package com.lhd.controller;

import com.lhd.pojo.Result;
import com.lhd.service.UserGoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/userGood")
public class UserGoodController {
    @Autowired
    UserGoodService userGoodService;
    @PostMapping("/order")
    public Result add(Integer gid){
        userGoodService.add(gid);
        return Result.success();
    }
}
